{% from "security/_macros.html" import render_field_with_errors, render_field %}
{% include "security/_messages.html" %}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <style type="text/css" media="screen"></style>
    <script src="{{ url_for('static', filename='js/jquery-3.4.1.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/popper.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/bootstrap-4.4.1.js') }}"></script>
    <link href="{{ url_for('static', filename='css/bootstrap-4.4.1.css') }}" rel="stylesheet" type="text/css">
</head>

<body>
<div class="container" style="margin-top: 100px; height: 100px">
    <h1 style="text-align: center">得到 - 轻量copy&nbsp;</h1>
</div>
<div class="container" style="margin-top: 100px; width: 600px;">
    <form action="{{ url_for_security('login') }}" method="POST" name="login_user_form">
        {{ login_user_form.hidden_tag() }}
        {{ render_field_with_errors(login_user_form.email) }}
        {{ render_field_with_errors(login_user_form.password) }}
        {{ render_field_with_errors(login_user_form.remember) }}
        {{ render_field(login_user_form.next) }}
        {#          {{ render_field(login_user_form.submit) }}#}
        <div class="offset-xl-4 col-xl-10">
            <input class="btn btn-primary" id="submit" name="submit" style="width: 100px" type="submit" value="sign in">
            <a class="btn btn-secondary col-xl-3" id="regiter" name="register" href="/register">register</a>
            <div class="col-xl-4 offset-xl-0" id="forgot-pwd" style="float: right;"><a href="https://www.baidu.com">忘记密码？</a></div>
        </div>
    </form>
</div>

</body>
{#{% include "security/_menu.html" %}#}
